Select the approprate window from the list